package cn.iocoder.yudao.module.gpt.listener;

import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

@Data
public class GPTStreamResponseMessageDTO implements Serializable{

    private String id;

    private String model;

    private String object;

    private Long created;

    private String userId;

    private List<Choice> choices;

    @Data
    public static class Choice{
        private int index;

        private String finish_reason;

        @Valid
        private Delta delta;
        @Data
        public static class Delta{
            private String role;

            private String content;
        }
    }


}
